package abstract01.factory;


import abstract01.java.IponeProduct;
import abstract01.java.Router;
import abstract01.java.XiaomiPhone;
import abstract01.java.XiaomiRouter;

/**
 * @author feng
 * @Date 2021/10/14 21:47
 *  小米系列
 */
public class XiaomiProductFactory implements ProductFactory{

    //生产手机的工厂
    public IponeProduct PhoneFactory(){
     return new XiaomiPhone();
    }

    //生产路由器的工厂
    public Router routerFactory(){
        return new XiaomiRouter();
    }


}
